feat(chart): add support for bool extraArgs#6179
feat(chart): add support for bool extraArgs#6179farodin91 wants to merge 3 commits intokubernetes-sigs:masterfrom
Conversation
|
Hi @farodin91. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
Are you sure Does not work? The project supports --ignore-ingress-tls-spec
--no-ignore-ingress-tls-spec |
Pull Request Test Coverage Report for Build 22539991316Details
💛 - Coveralls |
|
@ivankatliarchuk I'm a bit confused. i should remove the whitespace. I added a tests with does it in the expected way: https://github.com/kubernetes-sigs/external-dns/pull/6179/changes#diff-bc73335a2fc76673f78676b9284eba373396c0efb1dcca92a3d96c416c756685R175 |
|
This feature is currently supported. You could try The proposed solution not too sure, seems redundant If this is what we want - it: should allow 'extraArgs' with boolean flags
set:
extraArgs:
--combine-fqdn-annotation
--no-expose-internal-ipv6
asserts:
- equal:
path: spec.template.spec.containers[?(@.name == "external-dns")].args
value:
- --log-level=info
- --log-format=text
- --interval=1m
- --source=service
- --source=ingress
- --policy=upsert-only
- --registry=txt
- --provider=aws
- --combine-fqdn-annotation
- --no-expose-internal-ipv6What is required 156 + {{- if kindIs "string" .Values.extraArgs }}
157 + {{- range (splitList " " .Values.extraArgs) }}
158 + {{- if . }}
159 + - {{ tpl . $ }}
160 + {{- end }}
161 + {{- end }}
162 + {{- end }}But this will not allow map, or slices to be added. Something like this, if we have mix of values Or |
|
file values.yml most likely need a commented out example with mix of flags, and schema to support string for extraArgs |
Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
|
I want to add the bool variant, as this allows me to override it with different value in a values.yaml file. This isn't straightforward with an array, and I don't like the idea of unsetting. |
|
Example with values.yaml and values.prod.yaml: extraArgs:
dev-arg: truevalues.prod.yaml extraArgs:
dev-arg: falsehelm template prod . -f values.prod.yaml |
Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
30aaeed to
1a8b151
Compare
stevehipwell
left a comment
There was a problem hiding this comment.
Thanks for the PR @farodin91, it looks good in principal.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Signed-off-by: farodin91 <github@jan-jansen.net>
448a4ab to
88556ab
Compare
|
/lgtm |
|
Fixes #6261 |
|
@ivankatliarchuk Anything to do? |
|
Nope. We are w8 for an approver |
|
@stevehipwell Any Update? |
What does it do ?
Support kind bool for extraArgs
Motivation
as envfrom isn't wanted, it would be great use extraargs with booleans
More